﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    // NOTE: If you change the interface name "IReligion" here, you must also update the reference to "IReligion" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IReligion
    {
        [OperationContract]
        int Religion_Using(int ReligionID);

        [OperationContract]
        DataSet Religion_GetAll();

        [OperationContract]
        ReligionInfo Religion_GetInfo(int ReligionID);

        [OperationContract]
        DataSet Religion_GetList(out int ItemCount, int currentPage, int pageSize);

        [OperationContract]
        int Religion_Insert(ReligionInfo ReInfo);

        [OperationContract]
        bool Religion_Update(ReligionInfo ReInfo);

        [OperationContract]
        bool Religion_Delete(int ReligionID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class ReligionInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        
        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
    }
}

